package jy.game.components.story;


import jy.game.components.role.JyRole;
import wx.xml.simpleframework.xml.Attribute;
import wx.xml.simpleframework.xml.Root;

@Root(name = "action")
public class JyStoryAction {

    @Attribute public String type;
    @Attribute public String value;

    public static JyStoryAction CreateDialog(JyRole role, String msg) {
        JyStoryAction action = new JyStoryAction();
        action.type = "DIALOG";
        action.value = String.format("%s#%s", role.key, msg);
        return action;
    }
}